<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Examples &mdash; pymunk 4.0.0 documentation</title>
    
    <link rel="stylesheet" href="_static/pymunk.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '4.0.0',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="shortcut icon" href="_static/pymunk_favicon.ico"/>
    <link rel="top" title="pymunk 4.0.0 documentation" href="index.html" />
    <link rel="next" title="Tutorials" href="tutorials.html" />
    <link rel="prev" title="pymunkoptions Module" href="pymunkoptions.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="tutorials.html" title="Tutorials"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="pymunkoptions.html" title="pymunkoptions Module"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">pymunk 4.0.0 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="examples">
<h1>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h1>
<p id="id1">Here you will find a list of the included examples. Each example have a short
description and a screenshot (if applicable).</p>
<p>To run the examples yourself either install pymunk or run it using the
convenience run.py script.</p>
<p>Given that pymunk is installed where your python will find it:</p>
<div class="highlight-python"><pre>&gt;cd examples
&gt;python breakout.py</pre>
</div>
<p>To run directly without installing anything. From the pymunk source folder:</p>
<div class="highlight-python"><pre>&gt;cd examples
&gt;python run.py breakout.py</pre>
</div>
<p>Each example contains something unique. Not all of the examples use the same
style. For example, some use the pymunk.pygame_util module to draw stuff,
others contain the actual drawing code themselfs. However, each example is
self contained. Except for external libraries (such as pygame) and pymunk each
example can be run directly to make it easy to read the code and understand
what happens even if it means that some code is repeated for each example.</p>
<p>If you have made something that uses pymunk and would like it displayed here
or in a showcase section of the site, feel free to contact me!</p>
<div class="contents local topic" id="example-files">
<p class="topic-title first">Example files</p>
<ul class="simple">
<li><a class="reference internal" href="#balls-and-lines-py" id="id2">balls_and_lines.py</a></li>
<li><a class="reference internal" href="#pyglet-util-demo-py" id="id3">pyglet_util_demo.py</a></li>
<li><a class="reference internal" href="#arrows-py" id="id4">arrows.py</a></li>
<li><a class="reference internal" href="#no-debug-py" id="id5">no_debug.py</a></li>
<li><a class="reference internal" href="#box2d-vertical-stack-py" id="id6">box2d_vertical_stack.py</a></li>
<li><a class="reference internal" href="#polygon-triangulation-py" id="id7">polygon_triangulation.py</a></li>
<li><a class="reference internal" href="#shapes-for-draw-demos-py" id="id8">shapes_for_draw_demos.py</a></li>
<li><a class="reference internal" href="#damped-rotary-spring-pointer-py" id="id9">damped_rotary_spring_pointer.py</a></li>
<li><a class="reference internal" href="#platformer-py" id="id10">platformer.py</a></li>
<li><a class="reference internal" href="#py2exe-setup-basic-test-py" id="id11">py2exe_setup__basic_test.py</a></li>
<li><a class="reference internal" href="#spiderweb-py" id="id12">spiderweb.py</a></li>
<li><a class="reference internal" href="#contact-with-friction-py" id="id13">contact_with_friction.py</a></li>
<li><a class="reference internal" href="#flipper-py" id="id14">flipper.py</a></li>
<li><a class="reference internal" href="#playground-py" id="id15">playground.py</a></li>
<li><a class="reference internal" href="#breakout-py" id="id16">breakout.py</a></li>
<li><a class="reference internal" href="#run-py" id="id17">run.py</a></li>
<li><a class="reference internal" href="#basic-test-py" id="id18">basic_test.py</a></li>
<li><a class="reference internal" href="#slide-and-pinjoint-py" id="id19">slide_and_pinjoint.py</a></li>
<li><a class="reference internal" href="#using-sprites-pyglet-py" id="id20">using_sprites_pyglet.py</a></li>
<li><a class="reference internal" href="#pygame-util-demo-py" id="id21">pygame_util_demo.py</a></li>
<li><a class="reference internal" href="#box2d-pyramid-py" id="id22">box2d_pyramid.py</a></li>
<li><a class="reference internal" href="#bouncing-balls-py" id="id23">bouncing_balls.py</a></li>
<li><a class="reference internal" href="#newtons-cradle-py" id="id24">newtons_cradle.py</a></li>
<li><a class="reference internal" href="#contact-and-no-flipy-py" id="id25">contact_and_no_flipy.py</a></li>
<li><a class="reference internal" href="#py2exe-setup-breakout-py" id="id26">py2exe_setup__breakout.py</a></li>
<li><a class="reference internal" href="#point-query-py" id="id27">point_query.py</a></li>
<li><a class="reference internal" href="#using-sprites-py" id="id28">using_sprites.py</a></li>
</ul>
</div>
<div class="section" id="balls-and-lines-py">
<h2><a class="toc-backref" href="#id2">balls_and_lines.py</a><a class="headerlink" href="#balls-and-lines-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/balls_and_lines.py</em></p>
<p>This example lets you dynamically create static walls and dynamic balls</p>
<img alt="_images/balls_and_lines.png" src="_images/balls_and_lines.png" />
</div>
<div class="section" id="pyglet-util-demo-py">
<h2><a class="toc-backref" href="#id3">pyglet_util_demo.py</a><a class="headerlink" href="#pyglet-util-demo-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/pyglet_util_demo.py</em></p>
<p>Showcase what the output of pymunk.pyglet_util draw methods will look like.</p>
<p>See pygame_util_demo.py for a comparison to pygame.</p>
<img alt="_images/pyglet_util_demo.png" src="_images/pyglet_util_demo.png" />
</div>
<div class="section" id="arrows-py">
<h2><a class="toc-backref" href="#id4">arrows.py</a><a class="headerlink" href="#arrows-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/arrows.py</em></p>
<p>Showcase of flying arrows that can stick to objects in a somewhat
realistic looking way.</p>
<img alt="_images/arrows.png" src="_images/arrows.png" />
</div>
<div class="section" id="no-debug-py">
<h2><a class="toc-backref" href="#id5">no_debug.py</a><a class="headerlink" href="#no-debug-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/no_debug.py</em></p>
<p>Very simple showcase of how to run pymunk with debug mode off</p>
</div>
<div class="section" id="box2d-vertical-stack-py">
<h2><a class="toc-backref" href="#id6">box2d_vertical_stack.py</a><a class="headerlink" href="#box2d-vertical-stack-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/box2d_vertical_stack.py</em></p>
<p>Remake of the veritcal stack demo from the box2d testbed.</p>
<img alt="_images/box2d_vertical_stack.png" src="_images/box2d_vertical_stack.png" />
</div>
<div class="section" id="polygon-triangulation-py">
<h2><a class="toc-backref" href="#id7">polygon_triangulation.py</a><a class="headerlink" href="#polygon-triangulation-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/polygon_triangulation.py</em></p>
<p>Quick demo of using triangulate.py to triangulate/convexise(?) a concave
polygon. Not good code as such, but functional and cheap</p>
<p>display:
thick red line: drawn polygon
medium blue lines: triangles after triangulation
thin white lines: convex polygons after convexisation(?)</p>
<p>input:
click points (in clockwise order)* to draw a polygon
press space to reset</p>
<ul class="simple">
<li>triangulate() and convexise() actually work on anticlockwise polys to match pymunk,
but this demo&#8217;s coords are upside-down compared to pymunk (pygame style),
so click clockwise to compensate :)</li>
</ul>
<img alt="_images/polygon_triangulation.png" src="_images/polygon_triangulation.png" />
</div>
<div class="section" id="shapes-for-draw-demos-py">
<h2><a class="toc-backref" href="#id8">shapes_for_draw_demos.py</a><a class="headerlink" href="#shapes-for-draw-demos-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/shapes_for_draw_demos.py</em></p>
<p>Helper function add_objects for the draw demos.
Adds a lot of stuff to a space.</p>
</div>
<div class="section" id="damped-rotary-spring-pointer-py">
<h2><a class="toc-backref" href="#id9">damped_rotary_spring_pointer.py</a><a class="headerlink" href="#damped-rotary-spring-pointer-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/damped_rotary_spring_pointer.py</em></p>
<p>This example showcase an arrow pointing or aiming towards the cursor.</p>
</div>
<div class="section" id="platformer-py">
<h2><a class="toc-backref" href="#id10">platformer.py</a><a class="headerlink" href="#platformer-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/platformer.py</em></p>
<p>Showcase of a very basic 2d platformer</p>
<p>The red girl sprite is taken from Sithjester&#8217;s RMXP Resources:
<a class="reference external" href="http://untamed.wild-refuge.net/rmxpresources.php?characters">http://untamed.wild-refuge.net/rmxpresources.php?characters</a></p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">The code of this example is a bit messy. If you adapt this to your
own code you might want to structure it a bit differently.</p>
</div>
<img alt="_images/platformer.png" src="_images/platformer.png" />
</div>
<div class="section" id="py2exe-setup-basic-test-py">
<h2><a class="toc-backref" href="#id11">py2exe_setup__basic_test.py</a><a class="headerlink" href="#py2exe-setup-basic-test-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/py2exe_setup__basic_test.py</em></p>
<p>Simple example of py2exe to create a exe of the basic_test example.</p>
</div>
<div class="section" id="spiderweb-py">
<h2><a class="toc-backref" href="#id12">spiderweb.py</a><a class="headerlink" href="#spiderweb-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/spiderweb.py</em></p>
<p>Showcase of a elastic spiderweb (drawing with pyglet)</p>
<p>It is possible to grab one of the crossings with the mouse</p>
<img alt="_images/spiderweb.png" src="_images/spiderweb.png" />
</div>
<div class="section" id="contact-with-friction-py">
<h2><a class="toc-backref" href="#id13">contact_with_friction.py</a><a class="headerlink" href="#contact-with-friction-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/contact_with_friction.py</em></p>
<p>This example spawns (bouncing) balls randomly on a L-shape constructed of
two segment shapes. Displays collsion strength and rotating balls thanks to
friction. Not interactive.</p>
<img alt="_images/contact_with_friction.png" src="_images/contact_with_friction.png" />
</div>
<div class="section" id="flipper-py">
<h2><a class="toc-backref" href="#id14">flipper.py</a><a class="headerlink" href="#flipper-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/flipper.py</em></p>
<p>A very basic flipper game.</p>
<img alt="_images/flipper.png" src="_images/flipper.png" />
</div>
<div class="section" id="playground-py">
<h2><a class="toc-backref" href="#id15">playground.py</a><a class="headerlink" href="#playground-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/playground.py</em></p>
<p>A basic playground. Most interesting function is draw a shape, basically
move the mouse as you want and pymunk will approximate a Poly shape from the
drawing.</p>
<img alt="_images/playground.png" src="_images/playground.png" />
</div>
<div class="section" id="breakout-py">
<h2><a class="toc-backref" href="#id16">breakout.py</a><a class="headerlink" href="#breakout-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/breakout.py</em></p>
<p>Very simple breakout clone. A circle shape serves as the paddle, then
breakable bricks constructed of Poly-shapes.</p>
<p>The code showcases several pymunk concepts such as elasitcity, impulses,
constant object speed, joints, collision handlers and post step callbacks.</p>
<img alt="_images/breakout.png" src="_images/breakout.png" />
</div>
<div class="section" id="run-py">
<h2><a class="toc-backref" href="#id17">run.py</a><a class="headerlink" href="#run-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/run.py</em></p>
<p>Use to run examples using pymunk located one folder level up.
Useful if you have the whole pymunk source tree and want to run the examples
in a quick and dirty way. (a poor man&#8217;s virtualenv if you like)</p>
<p>For example, to run the breakout demo:</p>
<div class="highlight-python"><pre>&gt; cd examples
&gt; python run.py breakout.py</pre>
</div>
</div>
<div class="section" id="basic-test-py">
<h2><a class="toc-backref" href="#id18">basic_test.py</a><a class="headerlink" href="#basic-test-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/basic_test.py</em></p>
<p>Very simple example that does not depend on any third party library such
as pygame or pyglet like the other examples.</p>
</div>
<div class="section" id="slide-and-pinjoint-py">
<h2><a class="toc-backref" href="#id19">slide_and_pinjoint.py</a><a class="headerlink" href="#slide-and-pinjoint-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/slide_and_pinjoint.py</em></p>
<p>A L shape attached with a joint and constrained to not tip over.</p>
<img alt="_images/slide_and_pinjoint.png" src="_images/slide_and_pinjoint.png" />
</div>
<div class="section" id="using-sprites-pyglet-py">
<h2><a class="toc-backref" href="#id20">using_sprites_pyglet.py</a><a class="headerlink" href="#using-sprites-pyglet-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/using_sprites_pyglet.py</em></p>
<p>This example is a clone of the using_sprites example with the difference
that it uses pyglet instead of pygame to showcase sprite drawing.</p>
<img alt="_images/using_sprites_pyglet.png" src="_images/using_sprites_pyglet.png" />
</div>
<div class="section" id="pygame-util-demo-py">
<h2><a class="toc-backref" href="#id21">pygame_util_demo.py</a><a class="headerlink" href="#pygame-util-demo-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/pygame_util_demo.py</em></p>
<p>Showcase what the output of pymunk.pygame_util draw methods will look like.</p>
<p>See pyglet_util_demo.py for a comparison to pyglet.</p>
<img alt="_images/pygame_util_demo.png" src="_images/pygame_util_demo.png" />
</div>
<div class="section" id="box2d-pyramid-py">
<h2><a class="toc-backref" href="#id22">box2d_pyramid.py</a><a class="headerlink" href="#box2d-pyramid-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/box2d_pyramid.py</em></p>
<p>Remake of the pyramid demo from the box2d testbed.</p>
<img alt="_images/box2d_pyramid.png" src="_images/box2d_pyramid.png" />
</div>
<div class="section" id="bouncing-balls-py">
<h2><a class="toc-backref" href="#id23">bouncing_balls.py</a><a class="headerlink" href="#bouncing-balls-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/bouncing_balls.py</em></p>
<p>This example spawns (bouncing) balls randomly on a L-shape constructed of
two segment shapes. Not interactive.</p>
<img alt="_images/bouncing_balls.png" src="_images/bouncing_balls.png" />
</div>
<div class="section" id="newtons-cradle-py">
<h2><a class="toc-backref" href="#id24">newtons_cradle.py</a><a class="headerlink" href="#newtons-cradle-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/newtons_cradle.py</em></p>
<p>A screensaver version of Newton&#8217;s Cradle with an interactive mode.</p>
<img alt="_images/newtons_cradle.png" src="_images/newtons_cradle.png" />
</div>
<div class="section" id="contact-and-no-flipy-py">
<h2><a class="toc-backref" href="#id25">contact_and_no_flipy.py</a><a class="headerlink" href="#contact-and-no-flipy-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/contact_and_no_flipy.py</em></p>
<p>This example spawns (bouncing) balls randomly on a L-shape constructed of
two segment shapes. For each collision it draws a red circle with size
depending on collision strength. Not interactive.</p>
<img alt="_images/contact_and_no_flipy.png" src="_images/contact_and_no_flipy.png" />
</div>
<div class="section" id="py2exe-setup-breakout-py">
<h2><a class="toc-backref" href="#id26">py2exe_setup__breakout.py</a><a class="headerlink" href="#py2exe-setup-breakout-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/py2exe_setup__breakout.py</em></p>
<p>Example script to create a exe of the breakout example using py2exe.</p>
</div>
<div class="section" id="point-query-py">
<h2><a class="toc-backref" href="#id27">point_query.py</a><a class="headerlink" href="#point-query-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/point_query.py</em></p>
<p>This example showcase point queries by highlighting the shape under the
mouse pointer.</p>
<img alt="_images/point_query.png" src="_images/point_query.png" />
</div>
<div class="section" id="using-sprites-py">
<h2><a class="toc-backref" href="#id28">using_sprites.py</a><a class="headerlink" href="#using-sprites-py" title="Permalink to this headline">¶</a></h2>
<p>Location: <em>examples/using_sprites.py</em></p>
<p>Very basic example of using a sprite image to draw a shape more similar
how you would do it in a real game instead of the simple line drawings used
by the other examples.</p>
<img alt="_images/using_sprites.png" src="_images/using_sprites.png" />
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="index.html">
              <img class="logo" src="_static/pymunk_logo_sphinx.png" alt="Logo"/>
            </a></p>
<h3><a href="index.html">Table Of Contents</a></h3>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="readme.html">Readme</a></li>
<li class="toctree-l1"><a class="reference internal" href="news.html">News</a></li>
<li class="toctree-l1"><a class="reference internal" href="installation.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="pymunk.html">API Reference</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="">Examples</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#balls-and-lines-py">balls_and_lines.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#pyglet-util-demo-py">pyglet_util_demo.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#arrows-py">arrows.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#no-debug-py">no_debug.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#box2d-vertical-stack-py">box2d_vertical_stack.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#polygon-triangulation-py">polygon_triangulation.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#shapes-for-draw-demos-py">shapes_for_draw_demos.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#damped-rotary-spring-pointer-py">damped_rotary_spring_pointer.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#platformer-py">platformer.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#py2exe-setup-basic-test-py">py2exe_setup__basic_test.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#spiderweb-py">spiderweb.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#contact-with-friction-py">contact_with_friction.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#flipper-py">flipper.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#playground-py">playground.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#breakout-py">breakout.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#run-py">run.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#basic-test-py">basic_test.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#slide-and-pinjoint-py">slide_and_pinjoint.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#using-sprites-pyglet-py">using_sprites_pyglet.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#pygame-util-demo-py">pygame_util_demo.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#box2d-pyramid-py">box2d_pyramid.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#bouncing-balls-py">bouncing_balls.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#newtons-cradle-py">newtons_cradle.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#contact-and-no-flipy-py">contact_and_no_flipy.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#py2exe-setup-breakout-py">py2exe_setup__breakout.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#point-query-py">point_query.py</a></li>
<li class="toctree-l2"><a class="reference internal" href="#using-sprites-py">using_sprites.py</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="tutorials.html">Tutorials</a></li>
<li class="toctree-l1"><a class="reference internal" href="advanced.html">Advanced</a></li>
<li class="toctree-l1"><a class="reference external" href="http://code.google.com/p/pymunk/issues/list">Issue Tracker</a></li>
<li class="toctree-l1"><a class="reference external" href="http://code.google.com/p/pymunk/source/checkout">Source Repository</a></li>
<li class="toctree-l1"><a class="reference external" href="http://code.google.com/p/pymunk/downloads/list">Downloads</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="pymunkoptions.html"
                        title="previous chapter"><tt class="docutils literal"><span class="pre">pymunkoptions</span></tt> Module</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="tutorials.html"
                        title="next chapter">Tutorials</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/examples.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="tutorials.html" title="Tutorials"
             >next</a> |</li>
        <li class="right" >
          <a href="pymunkoptions.html" title="pymunkoptions Module"
             >previous</a> |</li>
        <li><a href="index.html">pymunk 4.0.0 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2013, Victor Blomqvist.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2b1.
    </div>
  </body>
</html>